package com.wdy.visitor;

/**
 * @ClassName: Zoom
 * @Description: TODO
 * @Date: 2019/12/30 14:15
 * @Author: wangdy001
 * @Version: 1.0
 */
public class Zoom implements Modem {
    @Override
    public void accept(ModemVisitor visitor) {
     if(visitor instanceof ZoomVisitor) {
         ((ZoomVisitor)visitor).visit(this);
     } else {
         System.out.println(visitor.toString() + "is not allowed to visit " + this.toString());
     }
    }

    @Override
    public String toString() {
        return "Zoom{}";
    }
}
